package cn.iocoder.yudao.module.im.controller.app.message.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户APP - 发送消息请求 VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户APP - 发送消息请求")
@Data
public class AppMessageSendReqVO {

    @Schema(description = "消息唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "msg_12345")
    @NotBlank(message = "消息ID不能为空")
    private String id;

    @Schema(description = "接收者ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "123")
    @NotNull(message = "接收者ID不能为空")
    private Long toContactId;

    @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "text")
    @NotBlank(message = "消息类型不能为空")
    private String type;

    @Schema(description = "消息内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "Hello World")
    @NotBlank(message = "消息内容不能为空")
    private String content;

    @Schema(description = "是否群聊", example = "0")
    private Integer isGroup;

    @Schema(description = "文件ID", example = "1024")
    private Long fileId;

    @Schema(description = "文件分类", example = "1")
    private Integer fileCate;

    @Schema(description = "文件大小", example = "1024KB")
    private String fileSize;

    @Schema(description = "文件名称", example = "test.jpg")
    private String fileName;

    @Schema(description = "@用户列表")
    private List<Long> at;

    @Schema(description = "回复消息ID", example = "12345")
    private Long pid;

    @Schema(description = "扩展信息")
    private String extra;

    @Schema(description = "发送时间戳", example = "1640995200000")
    private Long sendTime;

}